package com.eastfair.certificate.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.eastfair.boot.request.PageParams;
import com.eastfair.core.base.R;
import com.eastfair.core.context.ContextUtil;
import com.eastfair.venuebooking.api.ExhibitionManageFeign;
import com.eastfair.venueservice.dto.ExhibitionManageQuery;
import com.eastfair.venueservice.vo.ExhibitionManageVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author ligang
 * @date 2022-07-25
 */
@Slf4j
@Validated
@RestController
@RequestMapping("/exhibition")
@Api(value = "ExhibitionController", tags = "展会")
public class ExhibitionController {

    @Autowired
    ExhibitionManageFeign exhibitionManageFeign;

    /**
     * 查询展会列表（综合）
     *
     * @param exhibitionManageQuery 查询展会列表（综合）
     * @return R
     */
    @ApiOperation(value = "查询展会列表（综合）", notes = "查询展会列表（综合）")
    @PostMapping("/queryExhibitionManage")
    public R<IPage<ExhibitionManageVO>> queryExhibitionManage(@RequestBody PageParams<ExhibitionManageQuery> exhibitionManageQuery) {
        log.info("queryExhibitionManage - 查询展会列表（综合） exhibitionManageQuery={}", exhibitionManageQuery);
        return exhibitionManageFeign.queryExhibitionManage(exhibitionManageQuery);
    }


}
